package com.zzy.service;

import com.zzy.dao.UserDao;
import com.zzy.model.User;

import java.util.List;

public class UserService {
    private UserDao userDao;

    public UserService (UserDao userDao){
        this.userDao = userDao;
    }


    public int  queryCount(){
        return  userDao.queryCount();
    }

    public void insertUser(User user) {
        userDao.insertUser(user);
    }


}